#!/bin/bash
export NODE_ENV=production
dir=$(cd $(dirname $0); pwd)
export PM2_HOME=$dir/tmp
node $dir/run.js $@ -r